/**
 * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 */

package com.iwindplus.cloud.ai;

import com.iwindplus.cloud.ai.domain.property.AiProperty;
import com.iwindplus.cloud.ai.service.BaseAiService;
import com.iwindplus.cloud.ai.service.impl.BaseAiServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * AI 配置.
 *
 * @author zengdegui
 * @since 2019/9/3
 */
@Slf4j
@Configuration
@EnableConfigurationProperties(AiProperty.class)
public class AiConfiguration {

    /**
     * 创建BaseAiService.
     *
     * @return BaseAiService
     */
    @Bean
    public BaseAiService baseAiService() {
        BaseAiService baseAiService = new BaseAiServiceImpl();
        log.info("BaseAiService={}", baseAiService);
        return baseAiService;
    }
}
